<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<input type="button" value="测试" onclick="fun()" />
	</body>
	<script type="text/javascript">
		function fun(){
			for(var i=1;i<10;i++){
				for(var j=1;j<=i;j++){
					document.write(i+"*"+j+"="+(i*j)+"&nbsp;");
				}
				document.write("<br />")
			}
		}
	</script>
	
</html>
